package com.fss.article1.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.fss.common.annotation.Excel;
import com.fss.common.core.domain.BaseEntity;

/**
 * article1对象 article
 * 
 * @author llf
 * @date 2024-12-02
 */
public class Article1 extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章id */
    private Long id;

    /** 文章作者 */
    @Excel(name = "文章作者")
    private String author;

    /** 文章点赞数 */
    @Excel(name = "文章点赞数")
    private Long likes;

    /** 文章评论 */
    @Excel(name = "文章评论")
    private Long comments;

    /** 文章简介 */
    @Excel(name = "文章简介")
    private String summary;

    /** 文章内容 */
    @Excel(name = "文章内容")
    private String content;

    /** 文章图片 */
    @Excel(name = "文章图片")
    private String coverImage;

    /** 文章分类 */
    @Excel(name = "文章分类")
    private String category;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }
    public void setLikes(Long likes) 
    {
        this.likes = likes;
    }

    public Long getLikes() 
    {
        return likes;
    }
    public void setComments(Long comments) 
    {
        this.comments = comments;
    }

    public Long getComments() 
    {
        return comments;
    }
    public void setSummary(String summary) 
    {
        this.summary = summary;
    }

    public String getSummary() 
    {
        return summary;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setCoverImage(String coverImage) 
    {
        this.coverImage = coverImage;
    }

    public String getCoverImage() 
    {
        return coverImage;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("author", getAuthor())
            .append("likes", getLikes())
            .append("comments", getComments())
            .append("summary", getSummary())
            .append("content", getContent())
            .append("coverImage", getCoverImage())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("category", getCategory())
            .append("title", getTitle())
            .toString();
    }
}
